"""hotel URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path
from app.views import mylogin,index,register,ajax_checkname,text,mylogout
from appFPX.views import kitchenHome, done, addingr, call, newingr, adddishes, checkDishesName
from appWK.views import entervip, reception, get_table, set_order, choicetable, get_order, set_bill,gettable
from appLJF.views import waiter,info,thedishes,addorder,checkclientid,mymessage
from appSTY.views import queryAll,addtable,deltableById,updateTable
urlpatterns = [
    path('admin/', admin.site.urls),
    path('login/', mylogin),
    path('index/', index),
    path('register/', register),
    path('kitchenHome/', kitchenHome),
    path('ajax_checkname/', ajax_checkname),
    path('text/', text),
    path('done/<int:theid>/', done),
    path('addingr/<int:ingrid>/', addingr),
    path('call/<int:orderid>/', call),
    path('newingr/', newingr),
    path('adddishes/', adddishes),
    path('checkDishesName/', checkDishesName),
    path('waiter/',waiter),
    path('info/',info),
    path('dishes/',thedishes),
    path('order_meal/',addorder),
    path('reception/', reception),
    path('entervip/', entervip),
    path('reserve/', get_table),
    path('choicetable/<int:tableid>/<int:clientid>/', choicetable),
    path('bill/', set_order),
    path('get_bill/', get_order),
    path('gettable/', gettable),
    path('setbill/', set_bill),
    path('showtable/',queryAll),
    path('addtable/',addtable),
    path('updateTable/<int:id>/',updateTable),
    path('deltableById/<int:id>/',deltableById),
    path('logout/',mylogout),
    path('settable/', get_table),
    path('checkclientid/',checkclientid),
    path('message/',mymessage),
]
